﻿$(function () {
    $.ajax({
        type: 'POST',
        async: false,
        contentType: 'application/json; charset=utf-8',
        url: '../DataService.asmx/GetAnnouncementById',
        data: '{"AnnouncementID": "' + querySt('id') + '"}',
        dataType: 'json',
        success: function (msg) {
            $('#TitleAnn').append('<h2>' + msg.d.Title + '</h2>');
            lblInfo.innerHTML = "Posted on:&nbsp;<strong>" + JSONDate(msg.d.Date) + "</strong>&nbsp;&nbsp;&nbsp By:&nbsp<strong>" + msg.d.UserName.toUpperCase() + "</strong>";
            spanDesc.innerHTML = msg.d.Description;
        }
    });
});